package com.bean;

import java.io.Serializable;

/**
 * 库存实体类
 */
public class Stock  implements Serializable {

    //主键
    private Integer id;
    //商品id
    private Integer commodityId;
    //商品名称
    private String name;
    //商品价格
    private Double price;
    //商品描述
    private String describes;
    //商品数量
    private Integer commodityCount;


    public Stock(Integer commodityId, Integer commodityCount) {
        this.commodityId = commodityId;
        this.commodityCount = commodityCount;
    }

    public Stock(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public Integer getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(Integer commodityCount) {
        this.commodityCount = commodityCount;
    }

    public Stock() {
    }

    public Stock(Integer id, Integer commodityId, String name, Double price, String describes, Integer commodityCount) {
        this.id = id;
        this.commodityId = commodityId;
        this.name = name;
        this.price = price;
        this.describes = describes;
        this.commodityCount = commodityCount;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "id=" + id +
                ", commodityId='" + commodityId + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", describes='" + describes + '\'' +
                ", commodityCount='" + commodityCount + '\'' +
                '}';
    }
}
